package com.bjpowernode;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest03 {

    @Test
    public void test01(){
        String configure="ba03/applicationContext.xml";

        ApplicationContext applicationContext=new ClassPathXmlApplicationContext(configure);

        System.out.println(applicationContext.getBean("myStudent"));

        System.out.println(applicationContext.getBean("myStudent2"));
    }

}
